import request from "@/utils/request";

export function getSurvey(data) {
  return request({
    url: "/my_survey",
    method: "get",
    params: data,
  });
}

export function getSurveyById(id) {
  return request({
    url: "/survey_detail/" + id + "/",
    method: "get",
  });
}
export function getSubmitSurvey(data) {
  return request({
    url: "my_submit_survey",
    method: "get",
    params: data,
  });
}

export function getSubmitSurveyById(id) {
  return request({
    url: `/submit_survey/${id}/`,
    method: "get",
  });
}

export function SurveySubmitUpdate(id, data) {
  return request({
    url: `/submit_survey/${id}/`,
    method: "patch",
    data: data,
  });
}
